import Mock from 'mockjs';
export default [
  {
    type: 'post',
    url: '/host/cloud/cooperation/decision/history',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|20-30": [
          {
            "id|+1": 0,
            "createTime": '@datetime("yyyy-MM-dd HH:mm:ss")',
            "address": '中山路与解放路交叉路口',
            "carId|10000-999999": 13659,
            "type|1": ['换道', '加速', '减速'],
            "result|1": ['执行', '未执行', '脱离', '未脱离']
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/decision/area',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|5": [
          {
            "area|+1": ['亦庄', '太和桥', '南京', '苏州', '上海'],
            "value|10-50": 10
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/decision/type',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|15": [
          {
            "type|+1": ['换道', '换道', '换道', '换道', '换道', '加速', '加速', '加速', '加速', '加速', '减速', '减速', '减速', '减速', '减速'],
            "area|+1": ['亦庄', '太和桥', '南京', '苏州', '上海'],
            "value|30-100": 100
          }
        ]
      })
    }
  },
  {
    type: 'post',
    url: '/host/cloud/cooperation/decision/result',
    response: () => {
      return Mock.mock({
        "retCode": '0000_0',
        "retMessage": '执行成功',
        "data|20": [
          {
            "type|+1": ['执行', '执行', '执行', '执行', '执行', '未执行', '未执行', '未执行', '未执行', '未执行', '脱离', '脱离', '脱离', '脱离', '脱离', '未脱离', '未脱离', '未脱离', '未脱离', '未脱离'],
            "area|+1": ['亦庄', '太和桥', '南京', '苏州', '上海'],
            "value|30-100": 100
          }
        ]
      })
    }
  }
]